//
//  YZChatMessageBaseCell.h
//  CocoaAsyncSocketClient
//
//  Created by lixiaoyi on 2018/6/22.
//  Copyright © 2018年 lixiaoyi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YZHeadImageView.h"
#import "YZMessageFrame.h"
#import "YZMessageModel.h"
#import "UIResponder+YZRouter.h"

@class YZChatMessageBaseCell;
@protocol BaseCellDelegate<NSObject>

- (void)longPress:(UILongPressGestureRecognizer *)longRecognizer;

@optional

- (void)headImageClicked:(NSString *)eId;

- (void)reSendMessage:(YZChatMessageBaseCell *)cell;

@end

@interface YZChatMessageBaseCell : UITableViewCell

@property (nonatomic, weak) id<BaseCellDelegate>longPressDelegate;

// 消息类型
@property (nonatomic, strong) YZMessageFrame *modelFrame;

// 头像
@property (nonatomic, strong) YZHeadImageView *headImageView;

// 内容气泡视图
@property (nonatomic, strong) UIImageView *bubbleView;

// 菊花视图所在的view
@property (nonatomic, strong) UIActivityIndicatorView *activityView;

// 重新发送
@property (nonatomic, strong) UIButton *retryButton;


@end
